package output;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class OutTrace {
	
	public String url;
	
	public OutTrace(String url){
		this.url = System.getProperty("user.dir") + "/" + url + ".txt";
	}
	
	public void ecrire(String texte){
		try {
			FileWriter fw = new FileWriter(url, true);
			BufferedWriter output = new BufferedWriter(fw);
	        output.write(texte);
	        output.write("\n");
			output.flush();
	        output.close();
		} catch(IOException ioe){
			ioe.printStackTrace();
		}
	}

}
